
	<?php if ($this->buttons || $this->enable_search) { ?>
	
	
        
        <style>
        
.table-fixed-toolbar {
    margin: 0 0 15px 0;
    padding: 0;
    float:left;
}

.table-fixed-toolbar li {
    display:inline;
}


        </style>
        
        
	<!-- 顶部工具栏按钮 -->
		<div class="row">
        
            <!-- 工具栏按钮 -->
            <div class="col-xs-12 col-sm-12 button-list clearfix">
                 <ul class="table-fixed-toolbar">
                        <?php foreach ($this->buttons as $button) {
                        echo '<li>' . $button->render_html() . '</li>';
                    } ?>
                 </ul>
                 
                 <ul class="pull-right table-fixed-toolbar">
                    
                    <li>
                        <div class="btn-group">
                            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="fa fa-share"></i>
                                                                                                导出
                                <span class="caret"></span>
                          </button>
                            <ul class="dropdown-menu" role="menu">
                                <li>
                                    <a class="">
                                        <i class="fa fa-arrow-circle-down"></i>
                                                                                                                            导出 Excel 2007
                                    </a>
                                </li>
                            </ul>
                        </div>
                     </li>
                    
                    <li>
                        <div class="btn-group">
                            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="fa fa-list-alt"></i>
                                                                                                显示
                                <span class="caret"></span>
                          </button>
                            <ul class="dropdown-menu" role="menu">
                                <li>
                                    <a class="">
                                        <i class="fa fa-arrow-circle-down"></i>
                                                                                                                            导出 Excel 2007
                                    </a>
                                </li>
                            </ul>
                        </div>
                     </li>
                     
                 </ul>
                 
            </div>
			
		</div>
	<?php } ?>
	
	<!-- 数据列表 -->
	<div class="row">
	   <div class="col-sm-12">
                    	<table class="table table-bordered table-striped table-hover">
                    		
                    		<thead>
                    			<tr>
                    				<?php foreach ($this->columns as $column) {
							            echo $column->render_head();
							        } ?>
                    			</tr>
                    		</thead>
                    		
                    		<tbody>
	                    		<?php if ($this->data_list) {

						            foreach ($this->data_list as $row) {
						                echo '<tr>';
						                
						                foreach ($this->columns as $column) {
						                    echo $column->render_cell($row);
						                }
						                
						                echo '</tr>';
						            }
            
	                    		} else { ?>
		                    		<!-- 没有数据 -->
		                    		<tr class="builder-data-empty">
									    <td class="text-center empty-info" colspan="9">
									        <i class="fa fa-database"></i> 暂时没有数据<br>
									    </td>
									</tr>
	                    		<?php } ?>
                    		</tbody>
                    		
                    	</table>
    </div>
</div>                 
   
                    <?php if (isset($pagination)) { ?>
                    <div class="row">
                        <div class="col-sm-5">
                            <div class="pagination-info">
                                <?php echo $pagination->show_info(); ?>
                            </div>
                        </div>
                        <div class="col-sm-7">
                            <ul class="pagination">
                                <?php echo $pagination->show_pages(); ?>
                            </ul>
                        </div>
                    </div>
                    <?php } ?>

